#include "FileList.h"

#include<iostream>


FileListItem::FileListItem()
{
	m_eType = eInvalid;
	m_nLevel = 0;
	m_nSize=0;
}

void FileList::dump(unsigned long& out_nTotalSize)
{
	using namespace std;
	out_nTotalSize = 0;

	int i, n= m_apxItem.size();
	std::string s;
	FileListItem* pxFileListItem = NULL;

	for(i=0; i< n; i++)
	{
		pxFileListItem = m_apxItem[i];

		cout << pxFileListItem->m_sName << ",";
		cout << pxFileListItem->m_sLocation << ",";
		cout << pxFileListItem->m_nSize;

		cout<<endl;
		out_nTotalSize += pxFileListItem->m_nSize;
	}
}